package server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Link {
    private Socket socket;
    private Thread t;


    public Link(ServerSocket serverSocket) throws IOException {
        this.socket = serverSocket.accept();
        System.out.println("客户端连接成功");

       // Talk.arr.add(socket);

    }




    public void lesson(){
        t=new Lesson(socket);
        t.start();

    }


}
